package com.hundsun.cprs.yyt.gateway.vo;

import java.util.Date;
import java.util.List;

public class TradeEntrustVo {
    private Long id;

    private String orderSn;

    private Long entrustNo;

    private Long userId;
    
    private String userName;

    private String fundAccount;

    private Long goodsId;

    private String goodsCode;

    private Long entrustPrice;

    private Long entrustAmount;

    private Integer status;

    private Date entrustTime;

    private Long businessAmount;

    private Long commissionFund;

    private Long managementFund;

    private Long remainAmount;//剩余未成量

    private List<OrderItemVo> orderItems;

    private String isCanReturn;//是否允许退货
    private String isCanDelivery;//是否允许发货

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFundAccount() {
        return fundAccount;
    }

    public void setFundAccount(String fundAccount) {
        this.fundAccount = fundAccount;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public Long getEntrustPrice() {
        return entrustPrice;
    }

    public void setEntrustPrice(Long entrustPrice) {
        this.entrustPrice = entrustPrice;
    }

    public Long getEntrustAmount() {
        return entrustAmount;
    }

    public void setEntrustAmount(Long entrustAmount) {
        this.entrustAmount = entrustAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getEntrustTime() {
        return entrustTime;
    }

    public void setEntrustTime(Date entrustTime) {
        this.entrustTime = entrustTime;
    }

    public Long getCommissionFund() {
        return commissionFund;
    }

    public void setCommissionFund(Long commissionFund) {
        this.commissionFund = commissionFund;
    }

    public Long getManagementFund() {
        return managementFund;
    }

    public void setManagementFund(Long managementFund) {
        this.managementFund = managementFund;
    }

    public Long getEntrustNo() {
        return entrustNo;
    }

    public void setEntrustNo(Long entrustNo) {
        this.entrustNo = entrustNo;
    }

    public Long getBusinessAmount() {
        return businessAmount;
    }

    public void setBusinessAmount(Long businessAmount) {
        this.businessAmount = businessAmount;
    }

    public List<OrderItemVo> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItemVo> orderItems) {
        this.orderItems = orderItems;
    }

    public Long getRemainAmount() {
        return this.entrustAmount - Math.abs(this.businessAmount);
    }

    public void setRemainAmount(Long remainAmount) {
        this.remainAmount = remainAmount;
    }

    public String getIsCanReturn() {
        return isCanReturn;
    }

    public void setIsCanReturn(String isCanReturn) {
        this.isCanReturn = isCanReturn;
    }

    public String getIsCanDelivery() {
        return isCanDelivery;
    }

    public void setIsCanDelivery(String isCanDelivery) {
        this.isCanDelivery = isCanDelivery;
    }
}
